package lab02.text12;

/**
 * Created by dell on 2017/10/25.
 */
public class Text12 {
    public static void main(String[] args) {
        Circle circle = new Circle();
        circle.raduis = 2;

        System.out.println("半径为2的圆的面积是："+circle.area());
        System.out.println("半径为2的圆的周长是："+circle.perimeter());

        Rectangular rectangular = new Rectangular();
        rectangular.height = 3.0;
        rectangular.width = 4.0;

        System.out.println("长方形的面积："+rectangular.area());
        System.out.println("长方形的周长："+rectangular.perimeter());
    }

}

